// react的框架
import React from 'react';
// jax语法
import ReactDOM from 'react-dom';
// import $ from 'jquery';
// 入口样式 全局
import './index.css';
// 样式模式
// import Home from './home/home';
// 图片模式
// import Odiv from './odiv/odiv';
//遍历
// import Fo from './fo/fo';
//数组
// import Arr from './arr/arr';
//组件
// import Comp1 from './comp1/comp1';
//事件
// import Even from './even/even';
//css结合js
import Opacity from './opacity/opacity';
//ajax
// import Ajax from './ajax/ajax';
//loading
// import Load from './load/load';






import * as serviceWorker from './serviceWorker';
// ReactDOM.render(<Load promise={$.getJSON('https://api.github.com/search/repositories?q=javascript&sort=stars')} />, document.getElementById('root'));
ReactDOM.render(<Opacity />, document.getElementById('root'));


serviceWorker.unregister();









//数组模式
// var arr = [
//     <h1 key="1">Hello world!</h1>,
//     <h2 key="2">React is awesome</h2>,
// ];
// const element = <div>{arr}</div>
// ReactDOM.render(element, document.getElementById('root'));


// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA

